package com.example.librarysystem.Service;

import com.example.librarysystem.entity.Borrower;

import java.util.List;

public interface BorrowerService {
    Integer selectCount();
    Borrower selectByName(String name);
    Borrower selectById(int id);
    int updateBorrowerAddress(Borrower borrower);
    int updateBorrowerPhone(Borrower borrower);
    List<Borrower> selectAll(int currentPage, int pageSize);
    List<Borrower> selectByNameAndPhone(String name, String phoneNum, int currentPage, int pageSize);
    int selectByNameAndPhoneCount(String name, String phoneNum);
    int updateBorrowerEmail(Borrower borrower);
    int updateBorrowerPassword(Borrower borrower);
    int updateBorrowerAddressAndPhone(Borrower borrower);
    int deleteById(int id);
    int insertBorrower(Borrower borrower);
}
